#ifndef __SIMCONSTANTS_H__
#define __SIMCONSTANTS_H__

#define MAX_BLOCK_SIZE 128
#define MAX_PAGES (32*1024 + 2) // 128M  
#define PAGE_SIZE (4*1024) // 4K
#define WORD_SIZE 4

#if WORD_SIZE == 4
#  define LG2_WORD_SIZE 2
#else
#  error Unknown word size
#endif

// ---- Utility definitions -------------------------------------------------------

#define __INLINE__         static __inline__   
#define __ALWAYS_INLINE__  __attribute__((always_inline))

#ifndef __ASM__
#define __ASM__       __asm__
#endif // __ASM__
#ifndef __VOLATILE__
#define __VOLATILE__  __volatile__    /* tell GCC not to change our asm */
#endif // __VOLATILE__

#define SIMARG_UNUSED              0xdeadbeef

#endif // __SIMCONSTANTS_H__
